//
//  OALog.h
//  OASDK_Works
//
//  Created by ChenJie on 3/4/20.
//  Copyright © 2020 Mist. All rights reserved.
//

#import <Foundation/Foundation.h>

#define OALogIt(format, ...) printf("✅ %s<%p> %s(%d) Says: \n%s \n", \
[NSStringFromClass(self.class) UTF8String], \
self, \
__PRETTY_FUNCTION__, \
__LINE__, \
[[NSString stringWithFormat:format, ##__VA_ARGS__] UTF8String] \
);

#define OALogFunction printf("🍺 %s<%p> %s(%d)\n", \
[NSStringFromClass(self.class) UTF8String], \
self, \
__PRETTY_FUNCTION__, \
__LINE__ \
);

#define NSLog(...) OALogIt(__VA_ARGS__)


//+(void) function:(char *)methodName
//          inLine:(int)line
//            logs:(NSString *)format, ...;
//
// ...
//
//#define FANCY_LOG(...) [MyLogger function: __PRETTY_FUNCTION__ \
//                                   inLine: __LINE__ \
//                                     logs: __VA_ARGS__]
//
//// then usage:
//FANCY_LOG(@"Hello %@!", planet);

//#define WKLog(format, ...) \
//printf("\nclass: <%p %s:(%d) > \n method: %s \n%s\n", \
//self, \
//[[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], \
//__LINE__, \
//__PRETTY_FUNCTION__, \
//[[NSString stringWithFormat:(format), ##__VA_ARGS__] UTF8String] )


@interface OALog : NSObject

@end

